package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("报警结果明细")
@TableName("business_meter_result_detail")
public class MeterResultDetail extends BasePojo{

    @ApiModelProperty("主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "仪表检测结果id" )
    @TableField(value = "resultId")
    private Integer  resultId;

    @ApiModelProperty(value = "仪表检测结果" )
    @TableField(value = "checkResult")
    private String  checkResult;

    @ApiModelProperty(value = "数据定义:电压，水压，温度" )
    @TableField(value = "dataDefine")
    private String dataDefine;

    @ApiModelProperty(value = "数据定义中文名称" )
    @TableField(value = "dataDefineCn")
    private String  dataDefineCn;

    @ApiModelProperty(value = "单位:V,A,MPa" )
    private String  unit;

    @ApiModelProperty(value = "阈值上限" )
    @TableField(value = "upperThreshold")
    private String upperThreshold;

    @ApiModelProperty(value = "阈值下限" )
    @TableField(value = "lowerThreshold")
    private String lowerThreshold;

    @ApiModelProperty(value = "度数范围" )
    private String ranges;

    @ApiModelProperty(value = "精度" )
    private String precisions;

    @ApiModelProperty(value = "检测框坐标" )
    private String  rect;

    @ApiModelProperty(value = "仪表id" )
    @TableField(value = "meterId")
    private Integer  meterId;

    @ApiModelProperty(value = "读数序号" )
    @TableField(value = "channelNo")
    private Integer channelNo;

    @ApiModelProperty(value = "报警类型" )
    @TableField(value = "alarmState")
    private String alarmState;

    @ApiModelProperty(value = "创建日期" )
    @TableField(value = "createDate")
    private Date createDate;
}
